//using ServiceStack.Redis;
using StackExchange.Redis;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RedisMain : MonoBehaviour
{
    void Start()
    {
        //RedisClient redisClient = new RedisClient("127.0.0.1", 6379);
        //Debug.Log(redisClient);

        ConnectionMultiplexer connectionMultiplexer = ConnectionMultiplexer.Connect("127.0.0.1,6379");
        Debug.Log(connectionMultiplexer);
        IDatabase db = connectionMultiplexer.GetDatabase(1);
        //db.StringSet("a", "fdhakjhjdaj");
        Debug.Log(db.StringGet("StringTest:num"));
        Debug.Log(db.StringGet("aa")); 
        //db.StringSet("StringTest:num", "111");
    }
}
